home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Python 1.1 / Mac / macgetmtime.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-29  |  179 b   |  14 lines  |  [TEXT/KAHL]

  1. #include "macstat.h"
  2.  
  3. /* Interfaced used by import.c */
  4.  
  5. long
  6. getmtime(path)
  7.     char *path;
  8. {
  9.     struct macstat st;
  10.     if (macstat(path, &st) != 0)
  11.         return -1L;
  12.     return st.st_mtime;
  13. }
  14.